﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="XemGiaoDichPage.aspx.cs"
    Inherits="GiaoDich_XemGiaoDichPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div style="text-align: center">
            <asp:Panel ID="pnEditMaster" runat="server" Width="700px" HorizontalAlign="Center">
                <table width="100%" class="TableStyle" cellpadding="0" cellspacing="1">
                    <tr>
                        <td colspan="4" align="center">
                            <span class="BigLabel2" id="ThongTinHoaDon"></span><span style="font-size: 24pt;
                                color: #000099"><strong>HÓA ĐƠN XUẤT KHO</strong></span><br />
                            &nbsp;<em><span style="color: #3333cc">Số:</span></em>
                            <asp:Label runat="server" ID="lblMaHoaDon" ForeColor="#FF0033"></asp:Label>
                            &nbsp; &nbsp;
                            <span style="color: #000099"><em>Loại giao dịch:</em></span>
                            <asp:Label runat="server" ID="lblLoaiGiaoDich" Font-Bold="true"></asp:Label>
                            <asp:DropDownList runat="server" ID="cboLoaiGiaoDich" Visible="false">
                                <asp:ListItem Value="2" Text="Xuất phân phối" Selected="true"></asp:ListItem>
                                <asp:ListItem Value="3" Text="Xuất điều chuyển"></asp:ListItem>
                                <asp:ListItem Value="4" Text="Xuất cấp trên"></asp:ListItem>
                                <asp:ListItem Value="5" Text="Xuất dùng"></asp:ListItem>
                                <asp:ListItem Value="6" Text="Xuất hủy"></asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                </table>
                <table width="95%" class="TableStyle" cellpadding="1" cellspacing="1" style="border:1px solid gray;" border="1">
                    <tr class="TrStyle">
                        <td class="TdStyle" width="25%" style="text-align: left">
                            Ngày xuất</td>
                        <td class="TdStyle" width="25%" style="text-align: left">
                            <asp:Label runat="server" ID="txtNgayXuat"></asp:Label>
                        </td>
                        <td class="TdStyle" width="25%" style="text-align: left">
                            Ngày xuất thực tế</td>
                        <td class="TdStyle" width="25%" style="text-align: left">
                            <asp:Label runat="server" ID="txtNgayXuatThucTe"></asp:Label>
                        </td>
                    </tr>
                    <tr class="TrStyle">
                        <td class="TdStyle" width="25%" style="height: 26px; text-align: left;">
                            Ngày nhận</td>
                        <td class="TdStyle" width="25%" style="height: 26px; text-align: left;">
                            <asp:Label runat="server" ID="txtNgayNhan"></asp:Label>
                        </td>
                        <td class="TdStyle" width="25%" style="height: 26px; text-align: left;">
                            Ngày nhận thực tế</td>
                        <td class="TdStyle" style="height: 26px; text-align: left;">
                            <asp:Label runat="server" ID="txtNgayNhanThucTe"></asp:Label>
                        </td>
                    </tr>
                    <tr class="TrStyle">
                        <td class="TdStyle" width="25%" style="height: 26px; text-align: left;">
                            Kho xuất</td>
                        <td class="TdStyle" width="25%" style="height: 26px; text-align: left;">
                            <asp:Label ID="lblKhoXuat" runat="server" Font-Bold="True"></asp:Label></td>
                        <td class="TdStyle" width="25%" style="height: 26px; text-align: left;">
                            Kho nhận</td>
                        <td class="TdStyle" style="height: 26px; text-align: left;">
                            <asp:Label ID="lblKhoNhan" runat="server" Font-Bold="True"></asp:Label></td>
                    </tr>
                    <tr class="TrStyle">
                        <td class="TdStyle" style="height: 26px; text-align: left" width="25%">
                            Người xuất</td>
                        <td class="TdStyle" style="height: 26px; text-align: left" width="25%">
                            <asp:Label runat="server" ID="lblNguoiXuat" Font-Bold="True"></asp:Label>
                        </td>
                        <td class="TdStyle" style="height: 26px; text-align: left" width="25%">
                            Người nhận</td>
                        <td class="TdStyle" style="height: 26px; text-align: left">
                            <asp:Label ID="lblUserNhan" runat="server" Font-Bold="True"></asp:Label></td>
                    </tr>
                    <tr class="TrStyle">
                        <td class="TdStyle" style="height: 51px; text-align: left" width="25%">
                            Nội dung</td>
                        <td class="TdStyle" colspan="3" style="height: 51px; text-align: left">
                            <asp:Label ID="txtNoiDung" runat="server" Font-Bold="True" ForeColor="blue"></asp:Label>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <strong>CHI TIẾT HÓA ĐƠN&nbsp;</strong><br />
            <asp:Panel ID="pnGridDetail" runat="server" Width="700px">
                <asp:DataGrid ID="detailGrid" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                    Width="100%" DataSourceID="dsDetail">
                    <PagerStyle Mode="NumericPages" />
                    <AlternatingItemStyle CssClass="DarkRow" />
                    <ItemStyle CssClass="LightRow" />
                    <Columns>
                        <asp:BoundColumn Visible="false" HeaderText="id" DataField="id"></asp:BoundColumn>
                        <asp:BoundColumn Visible="false" HeaderText="MaAnChi" DataField="MaAnChi"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Đợt phát hành" DataField="DotPhatHanh"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Mã hóa đơn" DataField="MaHoaDon"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Tên ấn chỉ" DataField="TenAnChi"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="seri" DataField="seri"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Chỉ số đầu" DataField="ChiSoDau"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Chỉ số cuối" DataField="ChiSoCuoi"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Đơn giá" DataField="donGia"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Kho xuất" DataField="KhoXuat"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Kho nhận" DataField="KhoNhan"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Nội Dung" DataField="GhiChu"></asp:BoundColumn>
                        <asp:BoundColumn Visible="false" HeaderText="Ngày xuất" DataField="Ngay"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Trạng thái" DataField="TrangThaiAC"></asp:BoundColumn>
                        <asp:TemplateColumn Visible="false">
                            <ItemTemplate>
                                <asp:Button CausesValidation="False" ID="cmdDelete" runat="server" Text="Xóa" Width="40"
                                    CommandName="cmdDelete"></asp:Button>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                    <HeaderStyle CssClass="HeaderRow" Font-Bold="True" />
                </asp:DataGrid>
                <asp:SqlDataSource ID="dsDetail" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
                    ProviderName="<%$ ConnectionStrings:DBConnectionString.ProviderName %>" SelectCommand="HoaDon_Detail_getByMaHoaDon"
                    SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="lblMaHoaDon" Name="MaHoaDon" PropertyName="Text" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </asp:Panel>
            <asp:SqlDataSource ID="ds" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
                ProviderName="<%$ ConnectionStrings:DBConnectionString.ProviderName %>"></asp:SqlDataSource>
        </div>
    </form>
</body>
</html>
